﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using System.Collections;
using NPMonitor.Web.UserControls;

namespace NPMonitor.Web
{
    public class BaseUserControl : System.Web.UI.UserControl
    {
        protected BasePage BasePage
        {
            get { return this.Page as BasePage; }
        }

        public string CurrentUser
        {
            get { return BasePage.CurrentUser; }
        }

        public int CurrentUserId
        {
            get { return BasePage.CurrentUserId; }
        }

        protected void BindDropdownList(DropDownList ddl, IList ds, string text, string value)
        {
            BasePage.BindDropdownList(ddl, ds, text, value);
        }

    }
}